import store from '@/store'
uni.addInterceptor('request', {
  invoke(args) {
	  
   if(store.state.user){
	
	   // request 触发前拼接 url
	   args.data.cookie=store.state.user.cookie
   }
   
  },
  success(args) {

  }, 
  fail(err) {
    console.log('interceptor-fail',err)
  }, 
  complete(res) {
  }
})